package com.usian.mapper;

import com.usian.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper  {


    @Select("select * from user where username=#{username}")
    User selectByNAame(User user);

    @Insert("INSERT INTO `user`(`id`, `name`, `password`, `createtime`, `oid`) VALUES (null, #{name}, #{password},#{createtime}, #{oid})")
    void insertUser(User user);
}
